package com.y4oung.model;

import java.sql.Time;

    public class Business {
        private int id;
        private String name;
        private String image;
        private String phone;
        private String introduction;
        private String city;
        private String region;
        private String map;
        private String address;
        private float price_per_person;
        private int group_count;
        private String type;
        private String cuisine;
        private String recom_dishes;
        private float stars;
        private float taste_stars;
        private float environment_stars;
        private float service_stars;
        private int review_count;
        private Time start;
        private Time end;
        private int is_open;

        public int getId() {
            return id;
        }
        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }

        public String getImage() {
            return image;
        }
        public void setImage(String image) {
            this.image = image;
        }

        public String getPhone(){
            return phone;
        }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public String getIntro() {
        return introduction;
    }
    public void setIntro(String introduction) {
        this.introduction = introduction;
    }
    
    public String getCity() {
    	return city;
    }
    public void setCity(String city) {
    	this.city = city;
    }
    
    public String getRegion() {
    	return region;
    }
    public void setRegion(String region) {
    	this.region = region;
    }
    
    public String getMap() {
    	return map;
    }
    public void setMap(String map) {
    	this.map = map;
    }
    
    public String getAddress() {
        return address;
    }
    public void setAddress(String address) {
        this.address = address;
    }
    
    public float getP_p_p(){
    	return price_per_person;
    }
    public void setP_p_p(float price_per_person) {
        this.price_per_person = price_per_person;
    }
    
    public int getGroupCount(){
    	return group_count;
    }
    public void setGroupCount(int group_count) {
        this.group_count = group_count;
    }
    
    public String getType() {
        return type;
    }
    public void setType(String type) {
        this.type = type;
    }
    
    public String getCuisine() {
        return cuisine;
    }
    public void setCuisine(String cuisine) {
        this.cuisine = cuisine;
    }
    
    public String getRecomDishes() {
        return recom_dishes;
    }
    public void setRecomDishes(String recom_dishes) {
        this.recom_dishes = recom_dishes;
    }
    
    public float getStars(){
    	return stars;
    }
    public void setStars(float stars) {
        this.stars = stars;
    }
    
    public float getTasteStars(){
    	return taste_stars;
    }
    public void setTasteStars(float taste_stars) {
        this.taste_stars = taste_stars;
    }
    
    public float getEnvironStars(){
    	return environment_stars;
    }
    public void setEnvironStars(float environment_stars) {
        this.environment_stars = environment_stars;
    }
    
    public float getServiceStars(){
    	return service_stars;
    }
    public void setServiceStars(float service_stars) {
        this.service_stars = service_stars;
    }
    
    public int getReviewCount(){
    	return review_count;
    }
    public void setReviewCount(int review_count) {
        this.review_count = review_count;
    }
    
    public Time getStart(){
    	return start;
    }
    public void setStart(Time start) {
        this.start = start;
    }
    
    public Time getEnd(){
    	return end;
    }
    public void setEnd(Time end) {
        this.end = end;
    }
    
    public int getIsOpen(){
    	return is_open;
    }
    public void setIsOpen(int is_open) {
        this.is_open = is_open;
    }

        @Override
        public boolean equals(Object obj) {
            if(this == obj){
                return true;
            }
            if(obj == null){
                return false;
            }
            if(getClass()!=obj.getClass()){
                return false;
            }

            Business other = (Business)obj;
            if(name == null){
                if(other.name != null){
                    return false;
                }
            }else if(!name.equals(other.name)){
                return false;
            }
            return true;
        }

    }
